﻿using PHMEE.Entities.DaqInfo.TdDevices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace PHMEE.IRepositories.DaqInfo.TdDevices
{
    /// <summary>
    /// 设备属性仓储
    /// </summary>
    public interface ITdDeviceAttributeRepository : IRepository<TdDeviceAttribute, Guid>
    {
        /// <summary>
        /// 根据超级的id查出所有列
        /// </summary>
        /// <param name="superTableId"></param>
        /// <returns></returns>
        Task<List<TdDeviceAttribute>> GetAttributesBySuperTableIdAsync(Guid superTableId);

        /// <summary>
        /// 批量插入设备属性
        /// </summary>
        /// <param name="attributes">设备属性集合</param>
        /// <returns></returns>
        Task InsertManyAsync(IEnumerable<TdDeviceAttribute> attributes);
    }
}
